    let ipt = document.getElementById("misc-b");
        ipt.onclick = function(){
        let name = document.getElementById("misc-n").value
        let word = document.getElementById("misc-p").value
        let reg = 'http://jx.xuzhixiang.top/ap/api/login.php'
            axios.get(reg,{
                params:{
                    username:name,
                    password:word
                }
            }).then(function(res){
                
                //请求成功
                   if(res.data.code == 1){
                        alert("登录成功")
                        localStorage('uid',res.data.data.uid)
                        localStorage('token',res.data.data.token)
                       location.href = 'index.html'
                   }
                }).catch(function(err){
                    //请求失败
                    console.log(err)
                })
            }